package com.bookstore.service;

import com.bookstore.domain.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    List<ShoppingCart> findAllByUid(Integer uid);

    ShoppingCart findAllByUidAndBid(Integer uid, Integer bid);

    int delShopping(Integer uid, Integer bid);

    int addCart(Integer bid, Integer uid, Integer count);

    int delCart(Integer bid, Integer uid);

    int upCount(Integer uid, Integer bid, Integer count);
}
